﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/CoverReport.master" AutoEventWireup="true" CodeFile="ClassLvlMethodReport.aspx.cs" Inherits="ContentPages_ClassLvlMethodReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="rightColumn"> 
  <div id="rightTop">
  <span id="header">Coverage report for &nbsp;<asp:Label ID="lblprojName" runat="server"></asp:Label></span> <span id="date"> <asp:Label ID="lblTime" runat="server" CssClass="" ></asp:Label></span>
      <div id="headerStatement">
        <table border="0" cellpadding="0" cellspacing="0" class="coverageReport">
             <tr>
                <th colspan="6" style="height: 15px">
              Statistics of &nbsp;<asp:Label ID="lblStatsName" runat="server" ></asp:Label>
             </th>  
                 
             </tr>
              <tr>
                  <th>
                      Covered</th>
                  <th>
                  </th>
                  <th colspan="2">
                      Non-covered</th>
                  <th colspan="2">
                      General Details</th>
              </tr>
              <tr>
                <td colspan="6" >&nbsp;
                   
                </td>                
             </tr>
              <tr>
                  <td>
                      Lines</td>
                  <td align="right">
                      <asp:Label ID="lblCovLines" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td style="width: 54px">
                      Lines</td>
                  <td align="right">
                      <asp:Label ID="lblNCLines" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      Lines / Method</td>
                  <td align="left">
                      <asp:Label ID="lblLnsMtd" runat="server" CssClass="LableStatisticsData"></asp:Label>
                  </td>
              </tr>
              <tr>
                  <td>
                      Lines (partially)</td>
                  <td align="right">
                      <asp:Label ID="lblParCovLines" runat="server" Text="" 
                        CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td style="width: 54px">
                      Blocks</td>
                  <td align="right">
                      <asp:Label ID="lblNCBlocks" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              </tr>
              <tr>
                  <td>
                      Blocks</td>
                  <td align="right">
                      <asp:Label ID="lblCovBlocks" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td style="width: 54px">
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              </tr>
          </table>
          </div></div>
 <div id="rightBottom">
 <div id="rightInside">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
  <ContentTemplate>
  <asp:GridView ID="gvClsMtdAggReport" runat="server" 
          AutoGenerateColumns="False" GridLines="Both" 
          CssClass="GridViewMetricsStyle" 
          onrowdatabound="gvClsMtdAggReport_RowDataBound"   >
        <RowStyle CssClass="GridRowStyle" />
                            <FooterStyle CssClass=""  />
                            <PagerStyle CssClass="" HorizontalAlign="Center"  />
                            <SelectedRowStyle CssClass=""  />
                            <HeaderStyle CssClass="GridViewAggregateHeaderStyle"  />
                            <EditRowStyle CssClass="" />
                            <AlternatingRowStyle CssClass="GridAlternateRowStyle"  />  
        <Columns>
            <asp:TemplateField HeaderText="Class Name" HeaderStyle-Wrap="true" HeaderStyle-Width="400" ItemStyle-HorizontalAlign="Left">
                <ItemTemplate>                    
                    <asp:HyperLink ID="lnkMtdName" runat="server" Font-Bold="true" text='<%# TruncateFewCharacters((string)Eval("Classname"))%>'></asp:HyperLink>   
                </ItemTemplate> 
            </asp:TemplateField> 
            
             <asp:TemplateField HeaderText="Total Coverage" HeaderStyle-Wrap="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="135" >
                <ItemTemplate>
                
                    <table id="Table1" runat="server">
                        <tr>                       
                            <td style="width:20px" id="totalCover" runat="server" align="right">
                                <asp:Label ID="lbltotCov" CssClass="CovPercentAlignment"  runat="server" text='<%# TruncateDouble((double)Eval("covPercentage"))%>'></asp:Label>   
                            </td>
                            <td style="width:7px">
                            </td>
                            <td style="width:100px" id="tCover" runat="server" align="right">
                                 <asp:Label ID="lblMajor" runat="server" CssClass="LabelMajor"   Width='<%# SetLblMajorWidth((double)Eval("covPercentage"))%>'>&nbsp;</asp:Label><asp:Label ID="lblMinor" CssClass="LabelMinor"  runat="server" Width='<%# SetLblMinorWidth((double)Eval("covPercentage"))%>'>&nbsp;</asp:Label> 
                            </td>
                            
                        </tr>
                    </table>  
                   
                </ItemTemplate> 
            </asp:TemplateField>            
           
            
            <asp:TemplateField HeaderText="Total Lines" HeaderStyle-Wrap="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="150">
                <ItemTemplate>
                    <asp:Label ID="lblAvgMeths" runat="server" text='<%# Bind("totLines")%>'></asp:Label>  
                </ItemTemplate> 
            </asp:TemplateField>          
          
        </Columns>
      
  </asp:GridView>    <br />
  
  <%--<asp:GridView ID="gvClsMtdCovAggregate" runat="server" 
          AutoGenerateColumns="False" GridLines="Both" 
           AllowSorting="True" onrowcreated="gvClsMtdCovAggregate_RowCreated" 
           onsorting="gvClsMtdCovAggregate_Sorting" 
           CssClass="GridViewMetricsStyle" 
           onrowdatabound="gvClsMtdCovAggregate_RowDataBound">
         <RowStyle CssClass="GridRowStyle" />
                            <FooterStyle CssClass=""  />
                            <PagerStyle CssClass="" HorizontalAlign="Center"  />
                            <SelectedRowStyle CssClass=""  />
                            <HeaderStyle CssClass="GridViewAggregateHeaderStyle"  />
                            <EditRowStyle CssClass="" />
                            <AlternatingRowStyle CssClass="GridAlternateRowStyle"  />  
        <Columns>
            <asp:TemplateField HeaderText="Method Name" ItemStyle-HorizontalAlign="Left" SortExpression="Methodname" HeaderStyle-Width="400">
                <ItemTemplate>  
                    <asp:Label ID="lblMtdName" runat="server" Text='<%# TruncateFewCharacters((string)Eval("Methodname"))%>'></asp:Label>       
                   
                </ItemTemplate> 
            </asp:TemplateField > 
             <asp:TemplateField HeaderText="Total Coverage" ItemStyle-HorizontalAlign="Right"  SortExpression="CovPercentage" HeaderStyle-Width="120">
                <ItemTemplate>
                    <table id="Table1" runat="server">
                        <tr>                           
                            <td style="width:20px" id="tdTotCov" runat="server" align="center" >
                                 <asp:Label ID="lbltotCov" CssClass="CovPercentAlignment" runat="server" text='<%# TruncateDouble((double)Eval("CovPercentage"))%>'></asp:Label>  
                            </td>
                            <td style="width:100px" id="td2" runat="server" align="right">
                                 <asp:Label ID="lblMajor" runat="server" CssClass="LabelMajor"  Width='<%# SetLblMajorWidth((double)Eval("CovPercentage"))%>'>&nbsp;</asp:Label><asp:Label ID="lblMinor" CssClass="LabelMinor"  runat="server" Width='<%# SetLblMinorWidth((double)Eval("CovPercentage"))%>'>&nbsp;</asp:Label> 
                            </td>
                        </tr>
                    </table> 
                   
                </ItemTemplate> 
            </asp:TemplateField>            
            
            <asp:TemplateField HeaderText="Line #"  SortExpression="LineNumber" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="80">
                <ItemTemplate>
                    <table id="tbl1" runat="server">
                        <tr>
                            <td style="width:40px" align="right" >
                                 <asp:Label ID="lblLineNumber" CssClass="CovPercentAlignment" runat="server" text='<%# Bind("LineNumber")%>'></asp:Label>  
                            </td>
                            <td style="width:40px">
                            </td>
                        </tr>
                    </table>                    
                </ItemTemplate>
            </asp:TemplateField> 
            
            <asp:TemplateField HeaderText="Total Lines"  SortExpression="TotalLines" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70">
                <ItemTemplate>
                     <table id="tbl2" runat="server">
                        <tr>
                            <td style="width:40px" align="right" >
                                <asp:Label ID="lblAvgMeths" CssClass="CovPercentAlignment" runat="server" text='<%# Bind("TotalLines")%>'></asp:Label>  
                            </td>
                            <td style="width:30px">
                            </td>
                        </tr>
                    </table> 
                    
                </ItemTemplate> 
            </asp:TemplateField>         
          
        </Columns>
      
  </asp:GridView> 

  <asp:GridView ID="gvSourceCode" runat="server" AutoGenerateColumns="false" 
           GridLines="None" CssClass="GridViewMetricsStyle" 
           onrowdatabound="gvSourceCode_RowDataBound"  >
        <Columns>
            <asp:TemplateField ItemStyle-Width="20" >
                <ItemTemplate>
                    <table id="tblKey" runat="server">
                        <tr>
                            <td style="width:30px" >
                                
                            </td>
                            <td style="width:80px">
                                <asp:Label ID="lblKey" runat="server" Text='<%# Bind("LineNumber")%>'></asp:Label> 
                            </td>
                        </tr>
                    </table>  
                    
                </ItemTemplate> 
            </asp:TemplateField> 
             <asp:TemplateField ItemStyle-Width="700" ItemStyle-CssClass="" >                
                <ItemTemplate>
                
                    <asp:Label ID="lblValue" runat="server" Text='<%# Bind("CodeString")%>'></asp:Label> 
                </ItemTemplate> 
            </asp:TemplateField> 
        </Columns> 
     </asp:GridView>     
  --%>   
         
    <object id="Object3" type="application/x-silverlight" style="width:100%;height:650px">
        <param name="source" value="../ClientBin/SilverlightCoverage.xap"/>
        <param name="initParams" value="PageID=3"  />
    </object>
     <br />
  
 <%-- <asp:GridView ID="gvSourceCode" runat="server" AutoGenerateColumns="false" 
           GridLines="None" CssClass="GridViewMetricsStyle" 
           onrowdatabound="gvSourceCode_RowDataBound"  >
        <Columns>
            <asp:TemplateField ItemStyle-Width="20" >
                <ItemTemplate>
                    <table id="tblKey" runat="server">
                        <tr>
                            <td style="width:30px" >
                                
                            </td>
                            <td style="width:80px">
                                <asp:Label ID="lblKey" runat="server" Text='<%# Bind("LineNumber")%>'></asp:Label> 
                            </td>
                        </tr>
                    </table>  
                    
                </ItemTemplate> 
            </asp:TemplateField> 
             <asp:TemplateField ItemStyle-Width="780" ItemStyle-CssClass="" >                
                <ItemTemplate>
                
                    <asp:Label ID="lblValue" runat="server" Text='<%# Bind("CodeString")%>'></asp:Label> 
                </ItemTemplate> 
            </asp:TemplateField> 
        </Columns> 
     </asp:GridView>     --%>
  </ContentTemplate>
  </asp:UpdatePanel> 
     
 </div>
 </div>
 
 </div>
</asp:Content>

